package com.xmkj.carwash.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by Xgl on 2017/2/10 0010.
 */

public class ToastUtil {
    public static  Toast mToast;
    public static void showToast(Context context, String text) {
        if (mToast == null) {
            mToast = Toast.makeText(context, null, Toast.LENGTH_SHORT);
        }
        mToast.setDuration(Toast.LENGTH_SHORT);
        mToast.setText(text);
        mToast.show();
    }
}
